import java.util.Arrays;

public class Test1 {
    public static void main(String[] args) {

        int[] array1 = {1, 2, 3, 4};


       array1 =  Arrays.copyOf(array1 , 8);

       array1 = Arrays.copyOf(array1 , array1.length * 2) ;
        System.out.println(array1.length);



    }




}
